name: tests71 run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-calcium/.tox/tests71/bin:/opt/pyenv/bin:/tmp/venv-UgP2/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 1903443015 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env USE_ODL_ALT_KARAF_ENV: ./karaf71.env env USE_ODL_ALT_KARAF_INSTALL_DIR: karaf71 env TOX_ENV_NAME: tests71 env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-calcium/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-calcium/.tox/tests71 env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-calcium/.tox/tests71 metadata pid: 40375 cwd: /w/workspace/transportpce-tox-verify-calcium/tests allow: /w/workspace/transportpce-tox-verify-calcium/.tox/tests71/bin/*:launch_tests.sh cmd: ./launch_tests.sh 7.1 exit_code: 1 using environment variables from ./karaf71.env pytest -q transportpce_tests/7.1/test01_portmapping.py ............ [100%] 12 passed in 40.11s pytest -q transportpce_tests/7.1/test02_otn_renderer.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [100%] =================================== FAILURES =================================== ______ TransportPCE400GPortMappingTesting.test_01_xpdr_device_connection _______ self = def test_01_xpdr_device_connection(self): response = test_utils.mount_device("XPDR-A2", ('xpdra2', self.NODE_VERSION)) > self.assertEqual(response.status_code, requests.codes.created, test_utils.CODE_SHOULD_BE_201) E AssertionError: 500 != 201 : Http status code should be 201 transportpce_tests/7.1/test02_otn_renderer.py:62: AssertionError ---------------------------- Captured stdout setup ----------------------------- starting OpenDaylight... starting KARAF TransportPCE build... Searching for pattern 'Transportpce controller started' in karaf.log... Pattern found! OpenDaylight started ! starting simulator xpdra2 in OpenROADM device version 7.1... Searching for pattern 'Data tree change listeners registered' in xpdra2-71.log... Pattern found! simulator for xpdra2 started ----------------------------- Captured stdout call ----------------------------- execution of test_01_xpdr_device_connection Searching for pattern 'Triggering notification stream NETCONF for node XPDR-A2' in karaf.log... Pattern not found after 180 seconds! Node XPDR-A2 still not added to tpce topology... _____ TransportPCE400GPortMappingTesting.test_02_service_path_create_otuc2 _____ self = def test_02_service_path_create_otuc2(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'service-path', { 'service-name': 'service_OTUC2', 'wave-number': '0', 'modulation-format': 'dp-qpsk', 'operation': 'create', 'nodes': [{'node-id': 'XPDR-A2', 'dest-tp': 'XPDR2-NETWORK1'}], 'center-freq': 196.1, 'nmc-width': 75, 'min-freq': 196.0375, 'max-freq': 196.125, 'lower-spectral-slot-number': 755, 'higher-spectral-slot-number': 768 }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:84: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_02_service_path_create_otuc2 _____ TransportPCE400GPortMappingTesting.test_03_get_portmapping_network1 ______ self = def test_03_get_portmapping_network1(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_03_get_portmapping_network1 _______ TransportPCE400GPortMappingTesting.test_04_check_interface_otsi ________ self = def test_04_check_interface_otsi(self): # pylint: disable=line-too-long response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-755:768") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:104: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_04_check_interface_otsi Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-755:768 _______ TransportPCE400GPortMappingTesting.test_05_check_interface_otsig _______ self = def test_05_check_interface_otsig(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTSIGROUP-200G") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:129: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_05_check_interface_otsig Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTSIGROUP-200G _______ TransportPCE400GPortMappingTesting.test_06_check_interface_otuc2 _______ self = def test_06_check_interface_otuc2(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTUC2") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:148: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_06_check_interface_otuc2 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTUC2 ___ TransportPCE400GPortMappingTesting.test_07_otn_service_path_create_oduc2 ___ self = def test_07_otn_service_path_create_oduc2(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_ODUC2', 'operation': 'create', 'service-rate': '200', 'service-format': 'ODU', 'nodes': [{'node-id': 'XPDR-A2', 'network-tp': 'XPDR2-NETWORK1'}] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:178: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_07_otn_service_path_create_oduc2 _____ TransportPCE400GPortMappingTesting.test_08_get_portmapping_network1 ______ self = def test_08_get_portmapping_network1(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_08_get_portmapping_network1 _______ TransportPCE400GPortMappingTesting.test_09_check_interface_oduc2 _______ self = def test_09_check_interface_oduc2(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-ODUC2") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:194: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_09_check_interface_oduc2 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODUC2 ___ TransportPCE400GPortMappingTesting.test_10_otn_service_path_create_100ge ___ self = def test_10_otn_service_path_create_100ge(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_Ethernet', 'operation': 'create', 'service-rate': '100', 'service-format': 'Ethernet', 'nodes': [{'node-id': 'XPDR-A2', 'client-tp': 'XPDR2-CLIENT1', 'network-tp': 'XPDR2-NETWORK1'}], 'ethernet-encoding': 'eth encode', 'opucn-trib-slots': ['1.1', '1.20'] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:235: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_10_otn_service_path_create_100ge ___ TransportPCE400GPortMappingTesting.test_11_check_interface_100ge_client ____ self = def test_11_check_interface_100ge_client(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-CLIENT1-ETHERNET-100G") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:249: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_11_check_interface_100ge_client Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-CLIENT1-ETHERNET-100G ____ TransportPCE400GPortMappingTesting.test_12_check_interface_odu4_client ____ self = def test_12_check_interface_odu4_client(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-CLIENT1-ODU4:service_Ethernet") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:266: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_12_check_interface_odu4_client Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-CLIENT1-ODU4:service_Ethernet ___ TransportPCE400GPortMappingTesting.test_13_check_interface_odu4_network ____ self = def test_13_check_interface_odu4_network(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-ODU4:service_Ethernet") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:290: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_13_check_interface_odu4_network Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODU4:service_Ethernet ____ TransportPCE400GPortMappingTesting.test_14_check_odu_connection_xpdra2 ____ self = def test_14_check_odu_connection_xpdra2(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "odu-connection", "XPDR2-CLIENT1-ODU4-x-XPDR2-NETWORK1-ODU4") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:321: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_14_check_odu_connection_xpdra2 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/odu-connection=XPDR2-CLIENT1-ODU4-x-XPDR2-NETWORK1-ODU4 ___ TransportPCE400GPortMappingTesting.test_15_otn_service_path_delete_100ge ___ self = def test_15_otn_service_path_delete_100ge(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_Ethernet', 'operation': 'delete', 'service-rate': '100', 'service-format': 'Ethernet', 'nodes': [{'node-id': 'XPDR-A2', 'client-tp': 'XPDR2-CLIENT1', 'network-tp': 'XPDR2-NETWORK1'}], 'ethernet-encoding': 'eth encode', 'trib-slot': ['1'], 'trib-port-number': '1' }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:349: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_15_otn_service_path_delete_100ge ______ TransportPCE400GPortMappingTesting.test_16_check_no_odu_connection ______ self = def test_16_check_no_odu_connection(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "odu-connection", "XPDR2-CLIENT1-ODU4-x-XPDR2-NETWORK1-ODU4") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:356: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_16_check_no_odu_connection Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/odu-connection=XPDR2-CLIENT1-ODU4-x-XPDR2-NETWORK1-ODU4 __ TransportPCE400GPortMappingTesting.test_17_check_no_interface_odu_network ___ self = def test_17_check_no_interface_odu_network(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-ODU4:service_Ethernet") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:361: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_17_check_no_interface_odu_network Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODU4:service_Ethernet ___ TransportPCE400GPortMappingTesting.test_18_check_no_interface_odu_client ___ self = def test_18_check_no_interface_odu_client(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-CLIENT1-ODU4:service_Ethernet") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:366: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_18_check_no_interface_odu_client Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-CLIENT1-ODU4:service_Ethernet __ TransportPCE400GPortMappingTesting.test_19_check_no_interface_100ge_client __ self = def test_19_check_no_interface_100ge_client(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-CLIENT1-ETHERNET-100G") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:371: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_19_check_no_interface_100ge_client Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-CLIENT1-ETHERNET-100G ___ TransportPCE400GPortMappingTesting.test_20_otn_service_path_delete_oduc2 ___ self = def test_20_otn_service_path_delete_oduc2(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_ODUC2', 'operation': 'delete', 'service-rate': '200', 'service-format': 'ODU', 'nodes': [{'node-id': 'XPDR-A2', 'network-tp': 'XPDR2-NETWORK1'}] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:384: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_20_otn_service_path_delete_oduc2 _____ TransportPCE400GPortMappingTesting.test_21_check_no_interface_oduc2 ______ self = def test_21_check_no_interface_oduc2(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-ODUC2") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:391: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_21_check_no_interface_oduc2 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODUC2 __________ TransportPCE400GPortMappingTesting.test_21a_check_no_oduc2 __________ self = def test_21a_check_no_oduc2(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:395: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_21a_check_no_oduc2 _____ TransportPCE400GPortMappingTesting.test_22_service_path_delete_otuc2 _____ self = def test_22_service_path_delete_otuc2(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'service-path', { 'service-name': 'service_OTUC2', 'wave-number': '0', 'modulation-format': 'dp-qpsk', 'operation': 'delete', 'nodes': [{'node-id': 'XPDR-A2', 'dest-tp': 'XPDR2-NETWORK1'}], 'center-freq': 196.1, 'nmc-width': 75, 'min-freq': 196.0375, 'max-freq': 196.125, 'lower-spectral-slot-number': 755, 'higher-spectral-slot-number': 768 }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:416: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_22_service_path_delete_otuc2 _____ TransportPCE400GPortMappingTesting.test_23_check_no_interface_otuc2 ______ self = def test_23_check_no_interface_otuc2(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-OTUC2") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:422: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_23_check_no_interface_otuc2 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTUC2 _____ TransportPCE400GPortMappingTesting.test_24_check_no_interface_otsig ______ self = def test_24_check_no_interface_otsig(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTSIGROUP-200G") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:427: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_24_check_no_interface_otsig Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTSIGROUP-200G ______ TransportPCE400GPortMappingTesting.test_25_check_no_interface_otsi ______ self = def test_25_check_no_interface_otsi(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-755:768") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:431: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_25_check_no_interface_otsi Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-755:768 __________ TransportPCE400GPortMappingTesting.test_25a_check_no_otuc2 __________ self = def test_25a_check_no_otuc2(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:434: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_25a_check_no_otuc2 _____ TransportPCE400GPortMappingTesting.test_26_service_path_create_otuc3 _____ self = def test_26_service_path_create_otuc3(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'service-path', { 'service-name': 'service_OTUC3', 'wave-number': '0', 'modulation-format': 'dp-qam8', 'operation': 'create', 'nodes': [{'node-id': 'XPDR-A2', 'dest-tp': 'XPDR2-NETWORK1'}], 'center-freq': 196.1, 'nmc-width': 75, 'min-freq': 196.0375, 'max-freq': 196.125, 'lower-spectral-slot-number': 755, 'higher-spectral-slot-number': 768 }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:454: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_26_service_path_create_otuc3 _____ TransportPCE400GPortMappingTesting.test_27_get_portmapping_network1 ______ self = def test_27_get_portmapping_network1(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_27_get_portmapping_network1 _______ TransportPCE400GPortMappingTesting.test_28_check_interface_otsi ________ self = def test_28_check_interface_otsi(self): # pylint: disable=line-too-long response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-755:768") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:476: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_28_check_interface_otsi Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-755:768 _______ TransportPCE400GPortMappingTesting.test_29_check_interface_otsig _______ self = def test_29_check_interface_otsig(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTSIGROUP-300G") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:502: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_29_check_interface_otsig Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTSIGROUP-300G _______ TransportPCE400GPortMappingTesting.test_30_check_interface_otuc3 _______ self = def test_30_check_interface_otuc3(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTUC3") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:521: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_30_check_interface_otuc3 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTUC3 ___ TransportPCE400GPortMappingTesting.test_31_otn_service_path_create_oduc3 ___ self = def test_31_otn_service_path_create_oduc3(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_ODUC3', 'operation': 'create', 'service-rate': '300', 'service-format': 'ODU', 'nodes': [{'node-id': 'XPDR-A2', 'network-tp': 'XPDR2-NETWORK1'}] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:551: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_31_otn_service_path_create_oduc3 _____ TransportPCE400GPortMappingTesting.test_32_get_portmapping_network1 ______ self = def test_32_get_portmapping_network1(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:558: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_32_get_portmapping_network1 _______ TransportPCE400GPortMappingTesting.test_33_check_interface_oduc3 _______ self = def test_33_check_interface_oduc3(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-ODUC3") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:567: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_33_check_interface_oduc3 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODUC3 ___ TransportPCE400GPortMappingTesting.test_34_otn_service_path_delete_oduc3 ___ self = def test_34_otn_service_path_delete_oduc3(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_ODUC3', 'operation': 'delete', 'service-rate': '300', 'service-format': 'ODU', 'nodes': [{'node-id': 'XPDR-A2', 'network-tp': 'XPDR2-NETWORK1'}] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:611: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_34_otn_service_path_delete_oduc3 _____ TransportPCE400GPortMappingTesting.test_35_check_no_interface_oduc3 ______ self = def test_35_check_no_interface_oduc3(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-ODUC3") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:617: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_35_check_no_interface_oduc3 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODUC3 __________ TransportPCE400GPortMappingTesting.test_35a_check_no_oduc3 __________ self = def test_35a_check_no_oduc3(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:620: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_35a_check_no_oduc3 _____ TransportPCE400GPortMappingTesting.test_36_service_path_delete_otuc3 _____ self = def test_36_service_path_delete_otuc3(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'service-path', { 'service-name': 'service_OTUC3', 'wave-number': '0', 'modulation-format': 'dp-qam8', 'operation': 'delete', 'nodes': [{'node-id': 'XPDR-A2', 'dest-tp': 'XPDR2-NETWORK1'}], 'center-freq': 196.1, 'nmc-width': 75, 'min-freq': 196.0375, 'max-freq': 196.125, 'lower-spectral-slot-number': 755, 'higher-spectral-slot-number': 768 }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:640: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_36_service_path_delete_otuc3 _____ TransportPCE400GPortMappingTesting.test_37_check_no_interface_otuc3 ______ self = def test_37_check_no_interface_otuc3(self): response = test_utils.check_node_attribute_request("XPDR-A1", "interface", "XPDR2-NETWORK1-OTUC3") > self.assertIn(response['status_code'], (requests.codes.conflict, requests.codes.service_unavailable)) E AssertionError: 500 not found in (409, 503) transportpce_tests/7.1/test02_otn_renderer.py:646: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_37_check_no_interface_otuc3 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTUC3 _____ TransportPCE400GPortMappingTesting.test_38_check_no_interface_otsig ______ self = def test_38_check_no_interface_otsig(self): response = test_utils.check_node_attribute_request( "XPDR-A1", "interface", "XPDR2-NETWORK1-OTSIGROUP-300G") > self.assertIn(response['status_code'], (requests.codes.conflict, requests.codes.service_unavailable)) E AssertionError: 500 not found in (409, 503) transportpce_tests/7.1/test02_otn_renderer.py:651: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_38_check_no_interface_otsig Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTSIGROUP-300G ______ TransportPCE400GPortMappingTesting.test_39_check_no_interface_otsi ______ self = def test_39_check_no_interface_otsi(self): response = test_utils.check_node_attribute_request("XPDR-A1", "interface", "XPDR2-NETWORK1-755:768") > self.assertIn(response['status_code'], (requests.codes.conflict, requests.codes.service_unavailable)) E AssertionError: 500 not found in (409, 503) transportpce_tests/7.1/test02_otn_renderer.py:655: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_39_check_no_interface_otsi Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-755:768 __________ TransportPCE400GPortMappingTesting.test_39a_check_no_otuc3 __________ self = def test_39a_check_no_otuc3(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:658: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_39a_check_no_otuc3 _____ TransportPCE400GPortMappingTesting.test_40_service_path_create_otuc4 _____ self = def test_40_service_path_create_otuc4(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'service-path', { 'service-name': 'service_OTUC4', 'wave-number': '0', 'modulation-format': 'dp-qam16', 'operation': 'create', 'nodes': [{'node-id': 'XPDR-A2', 'dest-tp': 'XPDR2-NETWORK1'}], 'center-freq': 196.1, 'nmc-width': 75, 'min-freq': 196.0375, 'max-freq': 196.125, 'lower-spectral-slot-number': 755, 'higher-spectral-slot-number': 768 }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:678: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_40_service_path_create_otuc4 _____ TransportPCE400GPortMappingTesting.test_41_get_portmapping_network1 ______ self = def test_41_get_portmapping_network1(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:690: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_41_get_portmapping_network1 _______ TransportPCE400GPortMappingTesting.test_42_check_interface_otsi ________ self = def test_42_check_interface_otsi(self): # pylint: disable=line-too-long response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-755:768") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:700: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_42_check_interface_otsi Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-755:768 _______ TransportPCE400GPortMappingTesting.test_43_check_interface_otsig _______ self = def test_43_check_interface_otsig(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTSIGROUP-400G") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:726: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_43_check_interface_otsig Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTSIGROUP-400G _______ TransportPCE400GPortMappingTesting.test_44_check_interface_otuc4 _______ self = def test_44_check_interface_otuc4(self): response = test_utils.check_node_attribute_request( "XPDR-A2", "interface", "XPDR2-NETWORK1-OTUC4") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:745: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_44_check_interface_otuc4 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTUC4 ___ TransportPCE400GPortMappingTesting.test_45_otn_service_path_create_oduc3 ___ self = def test_45_otn_service_path_create_oduc3(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_ODUC4', 'operation': 'create', 'service-rate': '400', 'service-format': 'ODU', 'nodes': [{'node-id': 'XPDR-A2', 'network-tp': 'XPDR2-NETWORK1'}] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:775: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_45_otn_service_path_create_oduc3 _____ TransportPCE400GPortMappingTesting.test_46_get_portmapping_network1 ______ self = def test_46_get_portmapping_network1(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:782: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_46_get_portmapping_network1 _______ TransportPCE400GPortMappingTesting.test_47_check_interface_oduc4 _______ self = def test_47_check_interface_oduc4(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-ODUC4") > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:791: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_47_check_interface_oduc4 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODUC4 ___ TransportPCE400GPortMappingTesting.test_48_otn_service_path_delete_oduc4 ___ self = def test_48_otn_service_path_delete_oduc4(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'otn-service-path', { 'service-name': 'service_ODUC4', 'operation': 'delete', 'service-rate': '400', 'service-format': 'ODU', 'nodes': [{'node-id': 'XPDR-A2', 'network-tp': 'XPDR2-NETWORK1'}] }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:835: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_48_otn_service_path_delete_oduc4 _____ TransportPCE400GPortMappingTesting.test_49_check_no_interface_oduc4 ______ self = def test_49_check_no_interface_oduc4(self): response = test_utils.check_node_attribute_request("XPDR-A2", "interface", "XPDR2-NETWORK1-ODUC4") > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 500 != 409 transportpce_tests/7.1/test02_otn_renderer.py:841: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_49_check_no_interface_oduc4 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A2/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-ODUC4 __________ TransportPCE400GPortMappingTesting.test_49a_check_no_oduc4 __________ self = def test_49a_check_no_oduc4(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:844: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_49a_check_no_oduc4 _____ TransportPCE400GPortMappingTesting.test_50_service_path_delete_otuc4 _____ self = def test_50_service_path_delete_otuc4(self): response = test_utils.transportpce_api_rpc_request( 'transportpce-device-renderer', 'service-path', { 'service-name': 'service_OTUC4', 'wave-number': '0', 'modulation-format': 'dp-qam16', 'operation': 'delete', 'nodes': [{'node-id': 'XPDR-A2', 'dest-tp': 'XPDR2-NETWORK1'}], 'center-freq': 196.1, 'nmc-width': 75, 'min-freq': 196.0375, 'max-freq': 196.125, 'lower-spectral-slot-number': 755, 'higher-spectral-slot-number': 768 }) > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 500 != 200 transportpce_tests/7.1/test02_otn_renderer.py:864: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_50_service_path_delete_otuc4 _____ TransportPCE400GPortMappingTesting.test_51_check_no_interface_otuc4 ______ self = def test_51_check_no_interface_otuc4(self): response = test_utils.check_node_attribute_request("XPDR-A1", "interface", "XPDR2-NETWORK1-OTUC4") > self.assertIn(response['status_code'], (requests.codes.conflict, requests.codes.service_unavailable)) E AssertionError: 500 not found in (409, 503) transportpce_tests/7.1/test02_otn_renderer.py:870: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_51_check_no_interface_otuc4 Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTUC4 _____ TransportPCE400GPortMappingTesting.test_52_check_no_interface_otsig ______ self = def test_52_check_no_interface_otsig(self): response = test_utils.check_node_attribute_request( "XPDR-A1", "interface", "XPDR2-NETWORK1-OTSIGROUP-400G") > self.assertIn(response['status_code'], (requests.codes.conflict, requests.codes.service_unavailable)) E AssertionError: 500 not found in (409, 503) transportpce_tests/7.1/test02_otn_renderer.py:875: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_52_check_no_interface_otsig Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-OTSIGROUP-400G ______ TransportPCE400GPortMappingTesting.test_53_check_no_interface_otsi ______ self = def test_53_check_no_interface_otsi(self): response = test_utils.check_node_attribute_request("XPDR-A1", "interface", "XPDR2-NETWORK1-755:768") > self.assertIn(response['status_code'], (requests.codes.conflict, requests.codes.service_unavailable)) E AssertionError: 500 not found in (409, 503) transportpce_tests/7.1/test02_otn_renderer.py:879: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_53_check_no_interface_otsi Request failed. /rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR2-NETWORK1-755:768 __________ TransportPCE400GPortMappingTesting.test_53a_check_no_otuc4 __________ self = def test_53a_check_no_otuc4(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "mapping", "XPDR2-NETWORK1") transportpce_tests/7.1/test02_otn_renderer.py:882: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'mapping', value = 'XPDR2-NETWORK1' def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_53a_check_no_otuc4 _____ TransportPCE400GPortMappingTesting.test_54_xpdr_device_disconnection _____ self = def test_54_xpdr_device_disconnection(self): response = test_utils.unmount_device("XPDR-A2") > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) E AssertionError: 500 not found in (200, 204) transportpce_tests/7.1/test02_otn_renderer.py:888: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_54_xpdr_device_disconnection Searching for pattern 'onDeviceDisConnected:\ XPDR\-A2' in karaf.log... Pattern not found after 180 seconds! Node XPDR-A2 still not deleted from tpce topology... _____ TransportPCE400GPortMappingTesting.test_55_xpdr_device_disconnected ______ self = def test_55_xpdr_device_disconnected(self): > response = test_utils.check_device_connection("XPDR-A2") transportpce_tests/7.1/test02_otn_renderer.py:891: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2' def check_device_connection(node: str): url = {'rfc8040': '{}/data/network-topology:network-topology/topology=topology-netconf/node={}?content=nonconfig', 'draft-bierman02': '{}/operational/network-topology:network-topology/topology/topology-netconf/node/{}'} response = get_request(url[RESTCONF_VERSION].format('{}', node)) res = response.json() return_key = {'rfc8040': 'network-topology:node', 'draft-bierman02': 'node'} if return_key[RESTCONF_VERSION] in res.keys(): connection_status = res[return_key[RESTCONF_VERSION]][0]['netconf-node-topology:connection-status'] else: > connection_status = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:376: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_55_xpdr_device_disconnected _____ TransportPCE400GPortMappingTesting.test_56_xpdr_device_not_connected _____ self = def test_56_xpdr_device_not_connected(self): > response = test_utils.get_portmapping_node_attr("XPDR-A2", "node-info", None) transportpce_tests/7.1/test02_otn_renderer.py:899: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'XPDR-A2', attr = 'node-info', value = None def get_portmapping_node_attr(node: str, attr: str, value: str): # pylint: disable=consider-using-f-string url = {'rfc8040': '{}/data/transportpce-portmapping:network/nodes={}', 'draft-bierman02': '{}/config/transportpce-portmapping:network/nodes/{}'} target_url = url[RESTCONF_VERSION].format('{}', node) if attr is not None: target_url = (target_url + '/{}').format('{}', attr) if value is not None: suffix = {'rfc8040': '={}', 'draft-bierman02': '/{}'} target_url = (target_url + suffix[RESTCONF_VERSION]).format('{}', value) else: attr = 'nodes' response = get_request(target_url) res = response.json() return_key = {'rfc8040': 'transportpce-portmapping:' + attr, 'draft-bierman02': attr} if return_key[RESTCONF_VERSION] in res.keys(): return_output = res[return_key[RESTCONF_VERSION]] else: > return_output = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:477: KeyError ----------------------------- Captured stdout call ----------------------------- execution of test_56_xpdr_device_not_connected --------------------------- Captured stdout teardown --------------------------- all processes killed =========================== short test summary info ============================ FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_01_xpdr_device_connection FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_02_service_path_create_otuc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_03_get_portmapping_network1 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_04_check_interface_otsi FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_05_check_interface_otsig FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_06_check_interface_otuc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_07_otn_service_path_create_oduc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_08_get_portmapping_network1 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_09_check_interface_oduc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_10_otn_service_path_create_100ge FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_11_check_interface_100ge_client FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_12_check_interface_odu4_client FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_13_check_interface_odu4_network FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_14_check_odu_connection_xpdra2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_15_otn_service_path_delete_100ge FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_16_check_no_odu_connection FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_17_check_no_interface_odu_network FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_18_check_no_interface_odu_client FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_19_check_no_interface_100ge_client FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_20_otn_service_path_delete_oduc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_21_check_no_interface_oduc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_21a_check_no_oduc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_22_service_path_delete_otuc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_23_check_no_interface_otuc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_24_check_no_interface_otsig FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_25_check_no_interface_otsi FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_25a_check_no_otuc2 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_26_service_path_create_otuc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_27_get_portmapping_network1 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_28_check_interface_otsi FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_29_check_interface_otsig FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_30_check_interface_otuc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_31_otn_service_path_create_oduc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_32_get_portmapping_network1 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_33_check_interface_oduc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_34_otn_service_path_delete_oduc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_35_check_no_interface_oduc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_35a_check_no_oduc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_36_service_path_delete_otuc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_37_check_no_interface_otuc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_38_check_no_interface_otsig FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_39_check_no_interface_otsi FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_39a_check_no_otuc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_40_service_path_create_otuc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_41_get_portmapping_network1 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_42_check_interface_otsi FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_43_check_interface_otsig FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_44_check_interface_otuc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_45_otn_service_path_create_oduc3 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_46_get_portmapping_network1 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_47_check_interface_oduc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_48_otn_service_path_delete_oduc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_49_check_no_interface_oduc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_49a_check_no_oduc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_50_service_path_delete_otuc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_51_check_no_interface_otuc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_52_check_no_interface_otsig FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_53_check_no_interface_otsi FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_53a_check_no_otuc4 FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_54_xpdr_device_disconnection FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_55_xpdr_device_disconnected FAILED transportpce_tests/7.1/test02_otn_renderer.py::TransportPCE400GPortMappingTesting::test_56_xpdr_device_not_connected 62 failed in 507.89s (0:08:27)